package com.ys.entity.mall;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TM_GiftUse", catalog="Id")
public class TmGiftUse extends BaseEntity<TmGiftUse> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="GiftCode", nameJava="giftCode", typeDataBase="varchar")
	private String giftCode;
	@YsField(nameDataBase="GoodsId", nameJava="goodsId", typeDataBase="bigint")
	private Long goodsId;
	@YsField(nameDataBase="GoodsCode", nameJava="goodsCode", typeDataBase="varchar")
	private String goodsCode;
	@YsField(nameDataBase="GoodsName", nameJava="goodsName", typeDataBase="varchar")
	private String goodsName;
	@YsField(nameDataBase="Address", nameJava="address", typeDataBase="varchar")
	private String address;
	@YsField(nameDataBase="CreateUser", nameJava="createUser", typeDataBase="varchar")
	private String createUser;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TmGiftUse setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TmGiftUse setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getGiftCode() {
		return giftCode;
	}
	public TmGiftUse setGiftCode(String giftCode) {
		this.giftCode = giftCode;
		return this;
	}
	public Long getGoodsId() {
		return goodsId;
	}
	public TmGiftUse setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
		return this;
	}
	public String getGoodsCode() {
		return goodsCode;
	}
	public TmGiftUse setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
		return this;
	}
	public String getGoodsName() {
		return goodsName;
	}
	public TmGiftUse setGoodsName(String goodsName) {
		this.goodsName = goodsName;
		return this;
	}
	public String getAddress() {
		return address;
	}
	public TmGiftUse setAddress(String address) {
		this.address = address;
		return this;
	}
	public String getCreateUser() {
		return createUser;
	}
	public TmGiftUse setCreateUser(String createUser) {
		this.createUser = createUser;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TmGiftUse setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TmGiftUse setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TmGiftUse setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TmGiftUse setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TmGiftUse setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TmGiftUse tmGiftUse(
		String bid,
		String giftCode,
		Long goodsId,
		String goodsCode,
		String goodsName,
		String address,
		String createUser,
		Integer effectStock,
		String remark,
		Integer status
			) {
		TmGiftUse entity = new TmGiftUse();
		entity.setBid(bid);
		entity.setGiftCode(giftCode);
		entity.setGoodsId(goodsId);
		entity.setGoodsCode(goodsCode);
		entity.setGoodsName(goodsName);
		entity.setAddress(address);
		entity.setCreateUser(createUser);
		entity.setEffectStock(effectStock);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}